package com.laiketui.order.api.feign;

import com.laiketui.order.api.dto.ExamineOrderDTO;
import com.laiketui.order.api.dto.ExamineOrderDetailDTO;
import com.laiketui.order.api.dto.OrderOfflineExamineDTO;
import com.laiketui.order.api.params.OrderInfoParams;
import com.laiketui.order.api.params.mch.MchOrderConfirmParams;
import com.laiketui.order.api.params.mch.MchOrderInfoParams;
import com.laiketui.order.api.params.store.ExamineOrderParams;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("order")
public interface FinanceOrderFeign {

    /**
     * 审核订单
     */
    @PostMapping("/order/v2/examineOrder/examine")
    String examineOrder(@RequestBody ExamineOrderParams params);

    /**
     * 财务订单审核支付详情
     */
    @RequestMapping("/order/v2/examineOrder/examineInfo")
    ExamineOrderDetailDTO examineInfo(@RequestBody OrderInfoParams params);

    /**
     * 财务订单审核详情列表
     */
    @PostMapping("/order/v2/examineOrder/examineList")
    List<OrderOfflineExamineDTO> examineList(@RequestBody OrderInfoParams params);

    /**
     * 财务订单详情
     */
    @PostMapping("/order/v2/examineOrder/orderDetails")
    ExamineOrderDTO orderDetails(@RequestBody MchOrderInfoParams params);

    /**
     * 待审核恢复待付款
     */
    @PostMapping("/order/v2/examineOrder/returnWaitPay")
    String returnWaitPay(@RequestParam("orderParentNo") String orderParentNo);

}
